package com.example.permission.entity.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;

/**
 * @description： 重置密码
 * @author: xuwq
 * @date: 2020/5/13 下午2:13
 */
@Data
public class PasswordDTO {
    @ApiModelProperty("旧密码")
    @NotEmpty(message = "旧密码不允许为空")
    private String oldPassword;
    @ApiModelProperty("新密码")
    @NotEmpty(message = "新密码不允许为空")
    private String password;
    @ApiModelProperty("确认新密码")
    @NotEmpty(message = "确认新密码不允许为空")
    private String againPassword;
}
